import java.awt.BorderLayout;

import javax.media.opengl.GLCapabilities;
import javax.swing.JFrame;

import org.junit.Test;


public class Main {
    
	public static void main(String[] args){
		GLCapabilities capabilities = new GLCapabilities();
	    capabilities.setRedBits(8);
	    capabilities.setBlueBits(8);
	    capabilities.setGreenBits(8);
	    capabilities.setAlphaBits(8);
	    capabilities.setStencilBits(8);
        JFrame frame = new JFrame("Sea Fight");
       MyJoglCanvas canvas = new MyJoglCanvas(300, 400, capabilities,frame);
        frame.getContentPane().add(canvas, BorderLayout.CENTER);
        frame.setSize(2000, 2000);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
        canvas.requestFocus();
	}
}
